<?php
// +-------------------------------------------------------------------------------
// | DingZone [ A Rapid Development Framework For Dingtalk ]
// +-------------------------------------------------------------------------------
// | 钉钉回调Tag枚举 v1.0
// |
// | Copyright (c) 2014-2018 http://www.heimalanshi.com All rights reserved.
// | Author : Jie
// | Date : 2018-08-09
// +-------------------------------------------------------------------------------

namespace ding\model;

/**
 * 员工状态枚举
 * @package ding\model
 */
class EmployeeUserStatusEnum {
    const PROBATION = 2;// 试用期
    const REGULAR = 3;//正式
    const LEAVING = 5;//待离职
    const OTHER = -1;//无状态

    /**
     * 获取所有的tag
     *
     * @return array
     * @throws \ReflectionException
     */
    public static function all() {
        $ref = new \ReflectionClass(get_called_class());
        $constans = $ref->getConstants();
        return array_values($constans);
    }
}